package com.example.demoexample.utils;

import android.content.Context;

public class Sample {

    private volatile static Sample sample;

    public Sample(Context context){

    }
    public static Sample getInstance(Context context){
        if (sample == null){
            synchronized (Sample.class){
                if (sample == null){
                    sample = new Sample(context);
                }
            }
        }
        return sample;
    }

}
